import type { RouteRecordRaw } from 'vue-router'

/**
 * @description 静态路由配置
 */
const constantRoutes: RouteRecordRaw[] = [
  {
    path: '/',
    redirect: '/main',
    meta: {
      isHide: true
    }
  },
  {
    path: '/login',
    name: 'login',
    component: () => import('@/views/login/login.vue'),
    meta: {
      keepAlive: false,
      isHide: true
    }
  },
  {
    path: '/404',
    component: () => import('@/views/notFound/404.vue'),
    meta: {
      isHide: true
    }
  },
  {
    path: '/:pathMatch(.*)*',
    redirect: '/404',
    meta: {
      isHide: true
    }
  },
  {
    path: '/main',
    name: 'main',
    component: () => import('@/views/main/main.vue')
  }
]

export default constantRoutes
